package com.ctshk.common.enums.appUser;

import com.ctshk.common.enums.AirProductChannelType;

/**
 * <p>
 *  我的收藏业务类型枚举类
 * </p>
 *
 * @author 李新科
 * @date 2021/5/18 11:37
 */
public enum UserCollectionTypeCode {
    TOUR_GROUP(1,"旅行團"),
    FIXED_ACKAGE(6,"自由行"),
    TICKET(14,"門票"),
    HOTEL(8,"酒店"),
    LOCALFUN(15,"當地玩樂"),
    GOODS(18,"商品"),
    ;

    UserCollectionTypeCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static UserCollectionTypeCode get(Integer code){
        for (UserCollectionTypeCode value : UserCollectionTypeCode.values()) {
            if(value.getCode().equals(code)){
                return value;
            }
        }
        return null;
    }
}
